<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="{{__PUBLIC__}}/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="{{__PUBLIC__}}/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<div class="alert alert-success">编辑友情链接</div>
		<form action="" method="post" enctype="multipart/form-data">
		<div class="form-group">
			<label for="exampleInputEmail1">链接名称</label>
			<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输人链接名称" name="lname" value="{{$oldData['lname']}}">
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">URL</label>
			<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入Url"  name="url" value="{{$oldData['url']}}">
		</div>
		
		<div class="form-group">
			<!-- 载入JS文件 -->
		  	<script src="{{__PUBLIC__}}/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
		  	<script type="text/javascript">
		  			$(function(){
			  				$('.close-img').click(function(){
									$("#img_div").remove();
									$("#file-img").append("<input  type='file' name='logo'>");
				  			});
			  		});
		  	</script>
		  	
			<label for="exampleInputEmail1">LOGO</label>
			<div id="file-img"></div>
			{{if value="$oldData['logo']"}}
					<div id="img_div">
							<img src="{{__ROOT__}}/{{$oldData['logo']}}"/>
							<a class="close-img" href="javascript:;" alt="关闭缩略图" title="关闭缩略图">x</a>
							<input type="hidden" name="logo" value="{{$oldData['logo']}}"/>
					</div>
			{{else}}
					<input  type="file" name="logo">
			{{endif}}
		</div>
		
		<div class="form-group">
			<label for="exampleInputEmail1">排序</label>
			<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入排序"  name="sort" value="{{$oldData['sort']}}">
		</div>
		<input type="hidden" name="lid" value="{{$oldData['lid']}}"/>
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
